Provide Incremental in for Statement (PIFS)

Description:

PIFS checks whether the third argument used in a for loop is missing. In such cases, it is suggested to provide the update statement or to use a while loop.

Incorrect:

for (int i = numItems(); --i >= 0; ) {
    processItem(i);
}

Correct:

for (int i = numItems() - 1; i >= 0; i--) {
    processItem(i);
}